<!DOCTYPE html>
<html>
    <head>
        <title>Laravel</title>


        <style>
            html, body {
                height: 100%;
            }

           /* body {
                margin: 0;
                padding: 0;
                width: 100%;
                display: table;
                font-weight: 100;
                font-family: 'Lato';
            }

            .container {
                text-align: center;
                display: table-cell;
                vertical-align: middle;
            }

            .content {
                text-align: center;
                display: inline-block;
            }

            .title {
                font-size: 24px;
            }*/
            body{
                text-align: center;
            }
            .test{
                margin: 0 auto;
                text-align: center
            }
            table{
                border-collapse:collapse;
            }
            tr{
                height: 30px
            }
            td {
                width: 150px;
                border: 1px solid black;
            }
        </style>
    </head>
    <body>
        <div class="container">
            <div class="content">
                <div class="title"><a href="{{route('home')}}">首页</a></div>
            </div>
        </div>
        <br>
        <br>
        <br>
        <br>
        <div class="test">
            <table align="center" border="1">
                <tr>
                    <th>name</th>
                    <th>age</th>
                    <th>size</th>
                    <th>size</th>
                    <th>size</th>
                </tr>
                @foreach($data as $k=>$v)
                    @foreach($v as $kk=>$vv)
                        <tr>
                            @if($kk == 0 )
                            <td rowspan="{{count($v)}}">11</td>
                            @else
                            @endif
                            <td>{{$vv[1]}}</td>
                            <td>{{$vv[2]}}</td>
                            <td>{{$vv[3]}}</td>
                            <td>{{$vv[4]}}</td>
                        </tr>
                    @endforeach
                @endforeach
            </table>
        </div>
    </body>
</html>
